package com.guli.gulimall.product.vo;

import lombok.Data;

import java.util.Objects;

/**
 * @author WZH
 * @title: Attrs
 * @projectName gulimall-java
 * @description:
 * @date 2022/1/7
 */
@Data
public class Attrs{
    private Long attrId;
    private String attrName;
    private String attrValue;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Attrs attrs = (Attrs) o;
        return attrId.equals(attrs.attrId) && attrName.equals(attrs.attrName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(attrId, attrName);
    }
}
